{include file="public/header" /}
{css href="__ROOT__/static/public/umeditor/themes/default/css/umeditor.css" /}
{js href="__ROOT__/static/public/umeditor/third-party/template.min.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.config.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.min.js" /}
<div class="container padding-top" style="width:1300px">
	<div class="line" style="height:100%;">
		<div class="x1 padding" style="width:489px">
			<div style="background:url('__ROOT__/static/public/images/webp.webp') no-repeat;background-size: 100%;height:810px;width:100%;text-align:center">
				<iframe style="width: 320px;margin: 143px 0px 0px 4px;height: 550px;" src="{:url('seller/index/preview')}?type=goods_detail&id={$data.id}"></iframe>
			</div>
		</div>
		<div class="x3 padding" style="width:784px;border-left:1px solid #ddd">
			<div>
				<form method="post" class="form-x" action="{if $data.id}?id={$data.id}{/if}">
					<div class="panel admin-panel">
						<div class="panel-head"><strong>{if input('get.id')}{:lang('edit').lang('service')}{else}{:lang('add').lang('service')}{/if}</strong></div>
						<br/>
						<script>
						//city 参数和回调
						var gid="{$data.gid}";
						var cateid="{$data.cateid}";
						var selectc=true;
						function select_g(){
							return false;
						}
						function select_c(){
							return false;
						}
						</script>
						<div class="form-group">
							<div class="label">
								<label for="title">{:lang('category')}</label>
							</div>
							<div class="field">
								{include file="public/category" /}
							</div>
						</div>
						<div class="form-group">
							<div class="label">
								<label for="title">{:lang('title')}</label>
							</div>
							<div class="field">
								<input type="text" class="input input-auto" id="title" name="title" value="{$data.title}" size="80" placeholder="{:lang('title')}" data-validate="length#<=36:{:lang('length')}12,required:{:lang('required')}" />
							</div>
						</div>
						<div class="form-group">
							<div class="label">
								<label for="price">{:lang('price')}</label>
							</div>
							<div class="field">
								<input type="text" class="input input-auto" id="price" name="price" value="{$data.price}" size="80" placeholder="{:lang('price')}" data-validate="required:{:lang('required')}" />
							</div>
						</div>
						<div class="form-group">
						<div class="input-inline clearfix">
							<div class="label">
								<label for="image1">{:lang('image')}1</label>
							</div>
							<div class="field">
								<input type="text" readonly class="input input-auto" id="image1" name="image1" value="{$data.image1}" size="65" placeholder="{:lang('image')}" data-validate="required:{:lang('required')}" />
								<span class="addbtn"><button type="button" data-id="image1" class="button upload">{:lang('file')}</button></span>
							</div>
						</div>
						</div>
						<div class="form-group">
						<div class="input-inline clearfix">
							<div class="label">
								<label for="image2">{:lang('image')}2</label>
							</div>
							<div class="field">
								<input type="text" readonly onclick="$(this).val('')" class="input input-auto" id="image2" name="image2" value="{$data.image2}" size="65" placeholder="{:lang('image')}" />
								<span class="addbtn"><button type="button" data-id="image2" class="button upload">{:lang('file')}</button></span>
							</div>
						</div>
						</div>
						<div class="form-group">
						<div class="input-inline clearfix">
							<div class="label">
								<label for="image3">{:lang('image')}3</label>
							</div>
							<div class="field">
								<input type="text" readonly onclick="$(this).val('')" class="input input-auto" id="image3" name="image3" value="{$data.image3}" size="65" placeholder="{:lang('image')}" />
								<span class="addbtn"><button type="button" data-id="image3" class="button upload">{:lang('file')}</button></span>
							</div>
						</div>
						</div>
						<div class="form-group">
						<div class="input-inline clearfix">
							<div class="label">
								<label for="image4">{:lang('image')}4</label>
							</div>
							<div class="field">
								<input type="text" readonly onclick="$(this).val('')" class="input input-auto" id="image4" name="image4" value="{$data.image4}" size="65" placeholder="{:lang('image')}" />
								<span class="addbtn"><button type="button" data-id="image4" class="button upload">{:lang('file')}</button></span>
							</div>
						</div>
						</div>
						<div class="form-group">
							<div class="label">
								<label for="service">{:lang('service')}</label>
							</div>
							<div class="field">
								<textarea name="service" class="input input-auto" rows="5" cols="80" placeholder="{:lang('service')}" data-validate="required:{:lang('required')}">{$data.service}</textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="label">
								<label for="content">{:lang('content')}</label>
							</div>
							<div class="field">
								<script data-validate="required:{:lang('required')}" type="text/plain" name="content" id="myEditor" style="width:591px;height:240px;">{$data.content} </script>
							</div>
						</div>
						<div class="form-button">
							<button class="button bg-main" type="submit">{:lang('submit')}</button>
						</div>
						<br/>
						</div>
					</form>
					<script>
						var um = UM.getEditor('myEditor');
					</script>
			</div>
		</div>
	</div>
</div>
<script>var um = UM.getEditor('myEditor');</script>
{include file="public/footer" /}